﻿<html>
<body>
Field1: <input type="text" id="field1" value="Hello World!"><br />
Field2: <input type="text" id="field2" ondblclick="this.value=''"><br /><br />
双击下面的按钮，把 Field1 的内容拷贝到 Field2 中：<br />
<button ondblclick="document.getElementById('field2').value=
document.getElementById('field1').value">Copy Text</button>
</body>
</html>
